package com.demo.util;

public enum GENDER {
    MALE("male", 1), FEMALE("female", 2);

    private String name;
    private int index;

    GENDER(String name, int index) {
        this.index = index;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public int getIndex() {
        return index;
    }
}
